/* --------------------------------
G2R Mining Solutions - CSS Optimizado
Archivo: inicio.css
Descripción: CSS optimizado sin redundancias para la página de inicio
-------------------------------- */

/* Importing Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Variables CSS */
:root {
    --secondary-color: #6caf2c;
    --dark-color: #252525;
    --white-color: #fff;
    --light-gray-color: #f2f2f2;
    --site-max-width: 1300px;
}

/* Configuración base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white-color);
    line-height: 1.7;
    word-spacing: 0.1em;
    color: #333;
    font-size: 16px;
}

/* Tipografía optimizada */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    margin-bottom: 1em;
    word-wrap: break-word;
}

p {
    margin-bottom: 1.2em;
    line-height: 1.8;
    word-wrap: break-word;
    text-align: justify;
}

/* Enlaces y listas */
a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Contenedores */
.section_container {
    margin: 0 auto;
    max-width: var(--site-max-width);
}

.section_title {
    text-align: center;
    padding: 60px 0 100px;
    font-size: 32px;
    font-family: "Righteous", sans-serif;
    text-transform: uppercase;
}

.section_title::after {
    content: '';
    width: 80px;
    background: var(--secondary-color);
    height: 5px;
    display: block;
    margin: 7px auto 0;
    border-radius: 8px;
}

/* Header y navegación */

label .menu_btn,
label .close_btn {
    display: none;
}

/* Header blanco (scroll) */

/* Hero Section */
.hero_section {
    min-height: 100vh;
    background: url("../imagenes/494083e8-eb00-431a-8777-a296690c2b87.jpg") no-repeat 50% 50%;
    background-size: cover;
    background-attachment: fixed;
}

.hero_container {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    padding-top: 150px;
    min-height: calc(100vh - 85px);
    justify-content: space-between;
}

.hero_container .text_section h2 {
    font-size: 55px;
    color: var(--white-color);
    margin-bottom: -20px;
    font-weight: 600;
}

.hero_container .text_section h3 {
    font-size: 50px;
    font-weight: 700;
    font-style: bold;
    color: var(--secondary-color);
    margin: 10px 0 -25px 0;
}

.hero_section .hero_container .text_section h4 {
    font-size: 40px;
    font-weight: 500;
    color: #fff;
    margin: -20px 0 0 0;
}

.hero_container .text_section p {
    font-size: 20px;
    font-weight: 400;
    color: var(--white-color);
    margin: 0 0 40px 1px;
    max-width: 70%;
    word-break: keep-all;
    hyphens: none;
}

/* Botón swipe */
.swipe {
    position: relative;
    background-color: #F1F7F7;
    width: 200px;
    height: 60px;
    color: #000;
    border-radius: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.35);
    border-left: 0.5px solid rgba(0, 0, 0, 0.35);
    padding-left: 40px;
    margin: 0 0 0 0;
    cursor: pointer;
    transition: 0.35s ease;
  }

  .swipe:hover {
    padding-left: 0;
    padding-right: 40px;
    color: #324B4C;
  }

  .swipecontainer {
    position: absolute;
    left: 5px;
    width: 50px;
    height: 50px;
    background: #6caf2c;
    border-radius: 50%;
    transition: 0.35s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f1f4f7;
  }

.swipecontainer svg {
    padding: 0 3% 8% 0;
  }

  .swipe:hover .swipecontainer {
    left: calc(100% - 55px);
    color: #f1f4f7;
  }

.hero_container .image_section {
    max-width: 45%;
}

.hero_container .image_section img {
    width: 100%;
}

/* About Us Section */
.about_us {
    padding: 60px 20px 120px;
    background: var(--light-gray-color);
}

.about_container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.about_container .text_section {
    max-width: 100%;
}

.about_container .text_section p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.5em;
}

.about_container .image_section {
    max-width: 45%;
}

.about_container .image_section img {
    width: 100%;
}

/* Gallery Section */
.gallery {
    background: var(--white-color);
    padding: 60px 20px 100px;
    overflow: hidden;
}

.gallery_container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 10px;
}

.gallery_carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0px;
    width: 100%;
    overflow: visible;
}

.gallery_items {
    flex: 0 0 25%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.gallery_items:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

.gallery .gallery_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.gallery_items:hover img {
    transform: scale(1.1);
}

/* Controles del carrusel */
.carousel_controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel_btn {
    background: var(--secondary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel_btn:hover {
    background: var(--dark-color);
    transform: scale(1.1);
}

.carousel_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Indicadores */
.carousel_indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Footer Section */

/* Top menu */

/* Media Queries Optimizadas */

/* PC pequeño - Solo ajustes de layout, header sigue siendo de PC */
@media screen and (max-width: 1024px) {
    .footer_section .footer_logo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .gallery_items {
        flex: 0 0 50%;
        height: 280px;
        padding: 0 7.5px;
        box-sizing: border-box;
    }
}

/* Tablet - Aquí sí cambia el header */
@media screen and (max-width: 900px) {
    label .menu_btn {
        display: block;
        font-size: 32px;
    }

    nav ul {
        display: block;
        background: var(--white-color);
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: all 0.3s ease;
    }

    #click:checked~ul {
        left: 0;
    }

    #click:checked~label .close_btn {
        display: block;
    }

    #click:checked~label .menu_btn {
        display: none;
    }

    nav ul li {
        display: block;
        padding: 15px;
        margin: 10px auto;
        width: 80%;
    }

    nav ul li a {
        color: var(--dark-color);
        font-size: 18px;
    }

    .hero_container {
        padding-top: 100px;
    }
}

/* Móvil */
@media screen and (max-width: 768px) {
    nav .nav_logo a img {
        max-width: 120px;
    }

    nav .nav_logo h2 {
        font-size: 28px;
    }

    .usa-language-container {
        margin: 7px 10px 0 0;
        font-size: 9px;
    }

    .usa-language-container a p {
        font-size: 11px;
        margin-left: -0.5rem;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.4;
        margin-bottom: 0.8em;
        text-align: center;
    }

    p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 1.5em;
        padding: 0 15px;
        text-align: left;
        word-spacing: 0.1em;
        word-break: keep-all;
        hyphens: none;
    }

    .section_title {
        font-size: 28px !important;
        padding: 40px 15px 30px !important;
        line-height: 1.3;
    }

    /* Hero section optimizado para móvil */
    .hero_container {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
        padding-top: 120px;
        text-align: center;
    }

    .hero_container .text_section h2 {
        font-size: 35px;
        margin: 0 0 10px 0;
    }

    .hero_section .hero_container .text_section h3 {
        font-size: 30px;
        margin: 10px 0 5px 0;
    }

    .hero_section .hero_container .text_section h4 {
        font-size: 24px;
        margin: 5px 0 20px 0;
    }

    .hero_container .text_section p {
        font-size: 18px;
        max-width: 100%;
        padding: 0 15px;
        text-align: left;
        word-break: keep-all;
        hyphens: none;
        margin: 0 0 30px 0;
        word-spacing: normal;
        letter-spacing: normal;
    }

    .hero_container .swipe {
        width: 200px;
        height: 50px;
        font-size: 16px;
        margin: 0 auto;
    }

    .hero_container .swipecontainer {
        width: 40px;
        height: 40px;
    }

    .about_us {
        padding: 40px 15px 80px;
    }

    .about_container .text_section p {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.3px;
        line-height: 1.9;
        text-align: justify;
        padding: 0 10px;
        margin-bottom: 1.8em;
        word-spacing: 0.1em;
    }

    .gallery {
        padding: 40px 10px 60px;
    }

    .gallery_container {
        padding: 0 5px;
        overflow: hidden;
    }

    .gallery_items {
        flex: 0 0 100%;
        height: 250px;
        margin-bottom: 0;
    }

    .gallery_carousel {
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .carousel_controls {
        gap: 20px;
        margin-top: 25px;
    }

    .carousel_btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .carousel_btn:hover {
        transform: scale(1.05);
    }

    .carousel_indicators {
        margin-top: 15px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    /* Footer responsive para móvil */
    footer {
        padding: 40px 15px 25px;
    }

    .footer_section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer_section .footer_logo {
        order: -1;
        margin-bottom: 20px !important;
        grid-column: 1 !important;
        text-align: center !important;
    }

    .footer_section .footer_logo a img {
        max-width: 140px;
        margin-bottom: 10px;
    }

    .footer_section h3 {
        font-size: 18px;
        margin-bottom: 20px;
        text-align: center;
        border-bottom: 2px solid rgba(255,255,255,0.3);
        padding-bottom: 8px;
    }

    .footer_section .useful_links,
    .footer_section .contact_us {
        text-align: center !important;
    }

    .footer_section .useful_links ul {
        text-align: center !important;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer_section .useful_links ul li {
        text-align: center !important;
    }

    .footer_section .useful_links ul li a {
        font-size: 15px;
        padding: 8px 0;
        text-align: center !important;
        display: block;
        width: 100%;
    }

    .footer_section .contact_us ul li {
        justify-content: center !important;
        text-align: center !important;
        max-width: 300px;
        margin: 15px auto;
        padding: 0 10px;
        display: flex;
        align-items: center;
    }

    .footer_section .contact_us ul li i {
        font-size: 18px;
        min-width: 25px;
    }

    .footer_section .contact_us ul li span {
        font-size: 15px;
        line-height: 1.6;
    }

    .footer_section .follow_us {
        margin-top: 20px !important;
        text-align: center !important;
        grid-column: 1 !important;
    }

    .footer_section .follow_us i {
        font-size: 28px;
        margin: 0 6px 8px 6px;
        padding: 8px;
        width: 45px;
        height: 45px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Móviles muy pequeños - Solo aquí se muestra la línea blanca */
@media (max-width: 425px) {
    .top-menu::after {
        display: block;
    }
    
    .hero_container .text_section p,
    .hero-text {
        word-spacing: normal !important;
        letter-spacing: normal !important;
        text-align: left !important;
        word-break: keep-all !important;
        hyphens: none !important;
        line-height: 1.4 !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    nav .nav_logo a img {
        max-width: 100px;
    }

    nav .nav_logo h2 {
        font-size: 24px;
    }

    .usa-language-container {
        margin: 5px 5px 0 0;
        font-size: 8px;
    }

    .usa-language-container a p {
        font-size: 10px;
        margin-left: -0.3rem;
    }

    .hero_container .text_section h2 {
        font-size: 28px;
    }

    .hero_section .hero_container .text_section h3 {
        font-size: 24px;
    }

    .hero_section .hero_container .text_section h4 {
        font-size: 20px;
    }

    .hero_container .text_section p,
    .hero-text {
        font-size: 16px;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        text-align: left !important;
        word-break: keep-all !important;
        hyphens: none !important;
        line-height: 1.4 !important;
    }

    .hero_container {
        padding-top: 100px;
    }

    .hero_container .swipe {
        width: 180px;
        height: 45px;
        font-size: 14px;
    }

    .gallery {
        padding: 30px 5px 50px;
    }

    .gallery_container {
        padding: 0;
        margin: 0 auto;
        overflow: hidden;
    }

    .gallery_items {
        flex: 0 0 100%;
        height: 220px;
        border-radius: 10px;
    }

    .gallery_carousel {
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .carousel_btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    }

    .carousel_controls {
        gap: 15px;
        margin-top: 20px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* Footer para móviles pequeños */
    footer {
        padding: 30px 10px 20px;
    }

    .footer_section {
        gap: 25px;
    }

    .footer_section h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .footer_section .contact_us ul li {
        max-width: 260px;
        margin: 12px auto;
        padding: 0 5px;
    }

    .footer_section .follow_us i {
        font-size: 28px;
        width: 45px;
        height: 45px;
        margin: 0 6px 8px 6px;
    }
}